<?php
class CategoryModel extends Model{
	protected $table = 'category';
	
	public function getCategory() {
		$sql  = "select cate_id,cate_name,cate_desc from {$this -> table} where del_flag = :del_flag";
		$data = array(":del_flag" => 0);
		return $this -> db -> getRow($sql, $data);
	}
}
?>